package service

import (
	"github.com/ce-exp/backend/mod/class/internal/entity"
	"github.com/ce-exp/backend/mod/class/internal/repository"
	"github.com/tsingshaner/gin/shared"
)

type classQuery struct {
	repo *repository.Class
}

func NewClassQuery(repo *repository.Class) *classQuery {
	return &classQuery{repo}
}

func (cq *classQuery) ByID(id shared.ID) (*entity.Class, error) {
	return cq.repo.GetClassByID(id)
}
